package user

import (
	"github.com/gin-gonic/gin"
)

func Router(router gin.IRoutes) {
	router.POST("/userinfo", Userinfo)         //个人信息
	router.POST("/usercid", Usercid)           //设置个推cid
	router.POST("/tuisongcs", Tuisongcs)       //消息推送测试
	router.POST("/userdel", Userdel)           //注销账号
	router.POST("/userliushui", Userliushui)   //查询当天流水总额
	router.POST("/phonecode", Phonecode)       //发送验证码
	router.POST("/phoneupdate", Phoneupdate)   //修改手机号
	router.POST("/userupdate", Userupdate)     //修改完善个人信息
	router.POST("/userdaibi", Userdaibi)       //我的矿石记录
	router.POST("/usercollect", Usercollect)   //我的收藏
	router.POST("/userorders", Userorders)     //支付订单
	router.POST("/usemojing", Usemojing)       //魔晶明细
	router.POST("/userintegral", Userintegral) //积分明细
	//充值
	router.POST("/buydaibialipay", Buydaibialipay)       //充值矿石支付宝
	router.POST("/buydaibialiWechat", BuydaibialiWechat) //充值矿石小程序
	router.POST("/wechatNotifydaibi", WechatNotifydaibi) //充值矿石小程序回调
	//地址
	router.POST("/addrlist", Addrlist)                   //地址列表
	router.POST("/userAdderssadd", UserAdderssadd)       //添加地址
	router.POST("/userAdderssupdate", UserAdderssupdate) //修改地址
	router.POST("/userareaInfo", UserareaInfo)           //地址详情
	router.POST("/areadefault", Areadefault)             //获取默认地址
	router.POST("/areadefaultswitch", Areadefaultswitch) //选中某个为默认地址
	router.POST("/addrdel", Addrdel)                     //地址删除
	//商品
	router.POST("/goodbuy", Goodbuy)             //商品购买
	router.POST("/wechatNotify", WechatNotify)   //微信小程序支付回调
	router.POST("/usergoods", Usergoods)         //我的商品
	router.POST("/usergoodfh", Usergoodfh)       //选中商品发货
	router.POST("/usergoodfjsee", Usergoodfjsee) //选中商品分解or锁定前展示
	router.POST("/usergoodfj", Usergoodfj)       //选中商品分解
	router.POST("/usergoodsd", Usergoodsd)       //选中商品锁定
	router.POST("/usergoodjs", Usergoodjs)       //选中商品解锁
	router.POST("/usergoodqxfh", Usergoodqxfh)   //取消发货
	router.POST("/usergoodkd", Usergoodkd)       //快递查询
	router.POST("/usergoodxj", Usergoodxj)       //商品下架
	router.POST("/usergoodsh", Usergoodsh)       //商品收货
	router.POST("/goodcollect", Goodcollect)     //商品收藏or取消收藏
	//扭蛋机
	router.POST("/niudanbuy", Niudanbuy)             //扭蛋机抽奖支付
	router.POST("/wechatNotifyndj", WechatNotifyndj) //扭蛋机小程序支付回调
	router.POST("/choujiang", Choujiang)             //扭蛋机抽奖查看结果
	router.POST("/ndcollect", Ndcollect)             //扭蛋机收藏or取消收藏
	//一番赏
	router.POST("/fanshangbuy", Fanshangbuy)         //一番赏支付
	router.POST("/wechatNotifyyfs", WechatNotifyyfs) //一番赏小程序支付回调
	router.POST("/choujiangfs", Choujiangfs)         //一番赏查看结果
	router.POST("/fanshangcollect", Fanshangcollect) //一番赏收藏or取消收藏
	//赏卷
	router.POST("/shangjuans", Shangjuans)           //我的赏卷
	router.POST("/shangjuanylq", Shangjuanylq)       //已领取赏卷
	router.POST("/shangjuanfxlist", Shangjuanfxlist) //赏卷分享后点亮记录
	router.POST("/shangjuaninfo", Shangjuaninfo)     //赏卷详情
	router.POST("/shangjuandl", Shangjuandl)         //赏卷点亮
	router.POST("/shangjuanfx", Shangjuanfx)         //赏卷分享

	//vip相关
	router.POST("/vipgifts", Vipgifts)             //所有vip等级
	router.POST("/vipgiftsjprice", Vipgiftsjprice) //获取vip所需升级金额
	router.POST("/vipgiftinfo", Vipgiftinfo)       //查询对应等级奖励的详情
	router.POST("/vipgiftlq", Vipgiftlq)           //vip领取奖励
	router.POST("/vipgiftfive", Vipgiftfive)       //我的页面上面显示的五个等级
	//排行
	router.POST("/paihangbang", Paihangbang) //排行榜

	//小程序发货
	router.POST("/orderlistxcx", Orderlistxcx) //订单列表
	router.POST("/orderfhxcx", Orderfhxcx)     //测试发货
	//预言
	router.POST("/yuyanday", Yuyanday)           //今日预言
	router.POST("/yuyanlist", Yuyanlist)         //往期预言结果预览
	router.POST("/yuyanadd", Yuyanadd)           //参与预言
	router.POST("/yuyanuserlist", Yuyanuserlist) //我参与的预言
	router.POST("/yuyanconfig", Yuyanconfig)     //预言配置

}

func Router2(router gin.IRoutes) {
	router.POST("/loginapp", Loginapp)                 //注册登录app
	router.POST("/loginxcx", Loginxcx)                 //注册登录小程序授权
	router.POST("/loginxcxshangbao", Loginxcxshangbao) //小程序注册上报测试
	router.POST("/buycsshangbao", Buycsshangbao)       //小程序支付上报测试
	router.POST("/xcxopenid", Xcxopenid)               //授权openid
	router.POST("/logingzh", Logingzh)                 //公众号授权登录
	router.POST("/phoneJm", PhoneJm)                   //手机号解密
	router.POST("/packagelist", Packagelist)           //充值矿石套餐列表
	//商品
	router.POST("/goodtype", Goodtype)           //商品分类列表
	router.POST("/goods", Goods)                 //商品列表
	router.POST("/goodrecommend", Goodrecommend) //首页推荐商品列表
	router.POST("/goodinfo", Goodinfo)           //商品详情

	//扭蛋机
	router.POST("/niudantype", Niudantype)   //扭蛋机分类列表
	router.POST("/niudans", Niudans)         //扭蛋机列表
	router.POST("/niudaninfo", Niudaninfo)   //扭蛋机详情
	router.POST("/niudangoods", Niudangoods) //扭蛋机所有商品
	router.POST("/niudansq", Niudansq)       //扭蛋机手气榜
	router.POST("/niudanbuys", Niudanbuys)   //扭蛋机购买记录
	//一番赏
	router.POST("/fanshangs", Fanshangs)         //一番赏列表
	router.POST("/fanshanginfo", Fanshanginfo)   //一番赏详情
	router.POST("/fanshanggoods", Fanshanggoods) //一番赏所有商品
	router.POST("/fanshangsq", Fanshangsq)       //一番赏手气榜
	router.POST("/fanshangbuys", Fanshangbuys)   //一番赏购买记录
	router.POST("/fanshangzj", Fanshangzj)       //一番赏中奖轮播展示
	router.POST("/piaoping", Piaoping)           //首页飘萍
	//公用
	router.POST("/kefu", Kefu)                            //客服信息
	router.POST("/xieyiinfo", Xieyiinfo)                  //协议详情
	router.POST("/jieshaoinfo", Jieshaoinfo)              //规则介绍详情
	router.POST("/paiminglist", Paiminglist)              //排名奖励
	router.POST("/banners", Banners)                      //banner列表
	router.POST("/bannerinfo", Bannerinfo)                //banner详情
	router.GET("/paihangbangjiangli", Paihangbangjiangli) //每日凌晨执行展示排行榜获奖结果
	router.GET("/yuyandayjieguo", Yuyandayjieguo)         //每日凌晨执行展示预言获奖结果

}
